﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="DanhSachLoai.aspx.cs" Inherits="Admin_DanhSachLoaiSanPham" %>
<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="menuPlaceHolder" Runat="Server">
<h5>Menu</h5>
    <ul>
     <li><a href="DanhSachSanPham.aspx">Danh sách Sản Phẩm</a></li>
        <li><a href="ThemMoiSanPham.aspx">Thêm mới Sản Phẩm</a></li>
    </ul>
    <ul class="Actions">
        <li class ="Selected"><a href="DanhSachLoai.aspx">Danh sách Loại SP</a></li>
        <li><a href="ThemMoiLoaiSanPham.aspx">Thêm mới Loại SP</a></li>
    </ul>      
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
<div style="padding:12px 12px 12px 12px;">
 <div>
       
        <div class="title">
            Danh Sách Loại Sản Phẩm
        </div>
        <div style="width:100%;">
            <div style="display:table-cell; width:85%;float:left;">
                Tên Loại: <asp:TextBox ID="txt_TenLoai" runat="server"></asp:TextBox>
                <asp:Button ID="btn_Search" runat="server" Text="Tìm kiếm" OnClick="btn_Search_Click" />
            </div>
           <div class="addnewrow" style="float: right; width: 10%">             
                <asp:LinkButton ID="lbt_Xoa" runat="server" OnClick="lbt_Xoa_Click" Font-Bold="True" ForeColor="Red">Xóa</asp:LinkButton>
            </div>       
        </div>
     <div>
         <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
             <HeaderTemplate>
                 <table bgcolor="#cccccc" border="0" cellpadding="3" cellspacing="1" width="100%">
                
                     <thead>
                         <tr class="listtableheader">
                             <th>
                                 Mã Loại</th>
                             <th>
                                 Tên Loại</th>
                             <th>
                                 Sửa</th>
                             <th>
                                 <input id="cb_All" onclick="CheckAll(1);" type="checkbox" /><a href="javascript:CheckAll(2)">Chọn
                                     hết</a></th>
                         </tr>
                     </thead>
             </HeaderTemplate>
             <ItemTemplate>
                 <tr>
                     <td>
                         <asp:Literal ID="lit_MaLoai" runat="server"></asp:Literal></td>
                      <td><%#Eval("TenLoai") %></td>
                     <td>
                         <asp:HyperLink ID="hpl_Edit" runat="server" Text="Edit">
                         </asp:HyperLink></td>
                     <td>
                         <asp:CheckBox ID="cb_Xoa" runat="server" />
                         <asp:HiddenField ID="hf_id" runat="server" />
                     </td>
                 </tr>
             </ItemTemplate>
             <FooterTemplate>
                 </tbody> </table>
             </FooterTemplate>
         </asp:Repeater>
     </div>
      <cc1:PagerV2_8 ID="pager" runat="server" OnCommand="pager_Command" />
 </div>
   
 </div>
</asp:Content>
